<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('rbac/index')}">审核</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:U('Bdrunpeople/audit_post')}" method="post">
			<fieldset>
				<div class="control-group">
					<label class="control-label">{:L('MOBILE')}:</label>
					<div class="controls">
						{$data.mobile}
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">资料提交时间:</label>
					<div class="controls">
						{$data.mater_submit_time}
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('DISPATCH_NAME')}:</label>
					<div class="controls">
						{$data.dispatch_name}
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('AVATAR')}:</label>
					<div class="controls">
						<img width="25" height="25" src="{$data.avatar}" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('CERT_NUMBER')}:</label>
					<div class="controls">
						{$data.cert_number}
					</div>
				</div>

				<div id="layer-photos-demo" class="layer-photos-demo">
				<div class="control-group">
					<label class="control-label">{:L('CERT_FACE')}:</label>
					<div class="controls">
						<img layer-pid="图片id，可以不写" layer-src="{$data.cert_face}" src="{$data.cert_face}" alt="身份证正面" width="300" height="25" />
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('CERT_WRONG')}:</label>
					<div class="controls">
						<img layer-pid="图片id，可以不写" layer-src="{$data.cert_wrong}" src="{$data.cert_wrong}" alt="身份证反面" width="300" height="25" src="{$data.cert_wrong}" />
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('CERT_HAND')}:</label>
					<div class="controls">
						<img layer-pid="图片id，可以不写" layer-src="{$data.cert_hand}" src="{$data.cert_hand}" alt="手持照片" width="300" height="25" src="{$data.cert_hand}" />
						<span class="form-required">*</span>
					</div>
				</div>
				</div>

				<div class="control-group">
					<label class="control-label">{:L('CONVEYANCE')}:</label>
					<div class="controls">
						{$convs[$data['conveyance_id']]['conv_name']}
					</div>
				</div>


				<div class="control-group">
					<label class="control-label">城市:</label>
					<div class="controls">
						<select onchange="CityChanged();" id="city"  name="province_id">
							<option value="">==请选择省==</option>
							<volist name="province_data" id="vo">
								<if condition="$data['province_id'] == $vo['id']" >
									<option value="{$vo.id}" selected>{$vo.name}</option>
									<else/>
									<option value="{$vo.id}" >{$vo.name}</option>
								</if>
							</volist>
						</select>


						<php>if(count($citys)>0){ </php>

						<select name="city_id" id="city_id">
							<volist name="citys" id="vo">
								<if condition="$data['city_id'] == $vo['city_id']" >
									<option value="{$vo.city_id}" selected>{$vo.city_name}</option>
									<else/>
									<option value="{$vo.city_id}" >{$vo.city_name}</option>
								</if>
							</volist>
						</select>
						<php>}else{</php>
						<select name="city_id" id="city_id">
						</select>



						<php>}</php>

					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('IS_AUDIT')}:</label>
					<div class="controls">
						<if condition="$data['is_audit'] == 2">
							<input type="radio" name="is_audit" value="2" checked> 审核通过
							<input  type="radio" name="is_audit" value="3" > 拒绝通过
						<elseif condition="$data['is_audit'] == 3"/>
							<input type="radio" name="is_audit" value="2" > 审核通过
							<input  type="radio" name="is_audit" value="3" checked> 拒绝通过
						<else />
							<input type="radio" name="is_audit" value="2"> 审核通过
							<input  type="radio" name="is_audit" value="3" > 拒绝通过
						</if>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('AUDIT_IDEAR')}:</label>
					<div class="controls">
						<TEXTAREA name="audit_idear" rows="5" cols="45">{$data.audit_idear}</TEXTAREA>
						<span class="form-required">*</span>
					</div>
				</div>

			</fieldset>
			<div class="form-actions">
				<input type="hidden" name="id" value="{$data.dispatch_id}"/>
				<input type="hidden" name="formget[job_number]" value="{$formget.job_number}"/>
				<input type="hidden" name="formget[dispatch_name]" value="{$formget.dispatch_name}"/>
				<input type="hidden" name="formget[is_accept_dispatch]" value="{$formget.is_accept_dispatch}"/>
				<input type="hidden" name="formget[is_audit]" value="{$formget.is_audit}"/>
				<input type="hidden" name="formget[is_sign]" value="{$formget.is_sign}"/>
				<input type="hidden" name="formget[company_id]" value="{$formget.company_id}"/>
				<input type="hidden" name="formget[work_status]" value="{$formget.work_status}"/>
				<input type="hidden" name="formget[mobile]" value="{$formget.mobile}"/>
				<button type="submit" class="btn btn-primary  js-ajax-submit">{:L('SAVE')}</button>
				<a class="btn" href="{:U('Bdrunpeople/user',array('formget'=>$formget))}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		layer.ready(function(){ //为了layer.ext.js加载完毕再执行
			layer.photos({
				photos: '#layer-photos-demo'
				,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
			});
		});
		function CityChanged(province_id){

			$.ajax({
				url:"{:U('Operation/location_api')}",
				data:"province_id="+$("#city").val(),
				dataType:"JSON",
				success:function(ret){

					cmbAddOption(ret.retValue);
				}
			});
		}

		function cmbAddOption(ret)
		{
			$("#city_id").empty();
			var opetion = null;
			for(var i =0; i<ret.length;i++){
				opetion+= '<option value="'+ret[i].id+'">'+ret[i].city+'</option>';
			}
			$("#city_id").append(opetion);
		}

	</script>
	<script src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
</body>
</html>